﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml.Linq;

namespace NeonMika.EightTracks.Responses
{
    public class TagsResponse : Response
    {
        List<Tag> tags = null;

        public List<Tag> Tags
        {
            get { return tags; }
            set { tags = value; }
        }

        public TagsResponse(XElement xml) : base(xml)
        {
            Tags = new List<Tag>();
            var mixes = from tag in xml.Descendants("tag") select tag;
            foreach ( var x in mixes )
                Tags.Add(new Tag((XElement)x));
        }
    }
}
